package cn.owen.mapper;

import java.util.List;
import java.util.Map;

import cn.owen.model.User;

/**
 * user mapper
 * @author Burning
 * @email wenbao163.good@163.com
 * @date 2016年8月6日下午2:32:56
 *
 */
public interface UserMapper {
	List<User> selectList(User user);
	
	int insert(User user);
	
	int deleteByPrimaryKey(Integer id);
	
	User selectByPrimaryKey(Integer id);
	
	User selectByName(String name);
	
	int updateByPrimaryKey(User user);
	
    public User findUserInfo(String name, String password);

	public List<String> selectContents();

	public int countContent(Map map);

	/**修改后台用户密码
	 * @param user
	 */
	public void updateUserPass(User user);
}
